#ifndef GAMESETTING_H
#define GAMESETTING_H

#include <QObject>
#include <QSettings>
#include <QList>

class GameCore : public QObject
{
    Q_OBJECT
public:
    explicit GameCore(QObject *parent = 0);

    struct Question{
        QString fileName;
        int GuessNum;
        QStringList haveNoGuess;
        QString showUiWords;
    };


    void initSettings();
    void firstRunInit();
    void readWordsVec();
    void makeQuestion();
    void saveSettings();
    Question getQuestion();
    bool checkAnswer(QString ans);
    QString findAllLikeWords(QString word);

public slots:

private:
    QSettings st;
    QStringList wordsList;
    Question question;

};

#endif // GAMESETTING_H
